export const useAppStore = defineStore('app', {
  state: (): any => ({
    columnList: [],
    childColumnList: [],
    isLogined: false,
  }),
  getters: {
    currentColumnList: (state) => state.columnList,
    currentChildColumnList: (state) => state.childColumnList,
  },
  actions: {
    update(partial: any) {
      this.$patch(partial)
    },
    reset() {
      this.$reset()
    },
    add(value: any) {
      this.columnList.push(value)
    },
    logout() {
      this.reset()
      removeToken()
    },
  },
})
